home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / DELPHI / MSHAPE32.ZIP / MSHAPE.TXT < prev    next >
Encoding:
Text File  |  1996-04-06  |  4.0 KB  |  116 lines

  1. WHAT'S A MULTISHAPE?
  2. ....................
  3.  
  4. TMultiShape is a simple but powerful VCL component which allows you to
  5. create many graphic effects on your forms.
  6. The basic idea is very simple: you can specify a base shape which
  7. can be repeated horizontally, vertically or in both directions.
  8. The basic shape can be a geometrical shape (rectangle, ellipse, triangle.
  9. diamond or line) or a text label.
  10. The text can be rotated and each shape can have a shadow effect.
  11. Using a single char with the Wingdings font you can have a lot of
  12. other base shapes: stars, arrows, checks and so on.
  13. The repetition of the basic shape creates a texture and since TMultiShape
  14. acts as a transparent layer you can use several layers to get very complex
  15. textures.
  16. However the best way to understand what you can do with it is to
  17. have a look to the demo program which comes with the component.
  18.  
  19. HINTS
  20. .....
  21.  
  22. TMultiShape is very easy to use and the best way to understand its
  23. capabilities is to explore it with the object inspector.
  24. I'll just give you some hints about the most important properties.
  25.  
  26. ShapeType: allows you to choose the base shape among msRectangle,
  27. msDiamond, msTriangle, msElllipse, ms RoundRect, msLine, msText.
  28.  
  29. ShapeW and ShapeH: these two properties set the size of the base
  30. shape.
  31.  
  32. XSpacing and YSpacing: these two properties allow you to set the
  33. specing between the base shapes when repetition is enabled (see
  34. RepeatMode).
  35.  
  36. XMargin and YMargin: you can shift the shape grid horizontally and
  37. vertically with these properties.
  38.  
  39. RepeatMode: this property determines how the base shape is repeated
  40. in the component area. Allowed values are : rpNone, rpHoriz, rpVert
  41. and rpBoth (default). If you set RepeatMode to rpNone and ShapeType
  42. to msText you have a Rotating Label component. Isf RepeatMode is
  43. set to rpNone the component size and the base shape size are
  44. synchronized. When you change ShapeW Width is changed accordingly
  45. and so on.
  46.  
  47. Angle: sets the orientation of the base shape, the value range
  48. goes from -179 to 180 degrees. You can set any value for msText but
  49. only 45 degrees steps for msTriangle and msLine. Only TrueType
  50. fonts can be rotated.
  51.  
  52. Filled: determines if the base shape is filled or it's just an outline.
  53. The BorderWidth property sets the width of the outline. At the moment
  54. msRoundRect can't  be an outline.
  55.  
  56. Border: if you set this property to true a border is drawn around
  57. the base shape. This doesn't apply to msText and msLine. The color
  58. of the border can be changed with BorderColor.
  59.  
  60. BorderWidth: sets the width of the border. For msLine this sets
  61. the thickness of the line.
  62.  
  63. ShadowX and ShadowY allow you to move the shadow (if Shadow s set to
  64. true, of course).
  65.  
  66. Align: it's a standard VCL property and works like the one in TPanel.
  67.  
  68. FREQUENTLY ASKED QUESTIONS
  69. ..........................
  70.  
  71. HOW MUCH DOES IT COST?
  72.  
  73. Nothing ... oh well, almost nothing.
  74. MultiShape is distributed under the innovative ANYWARE concept.
  75. If you are happy with it, but only if you are very happy,
  76. you can send me anything you want:
  77.  
  78. postcards, e-mail messages (if you are lazy), photos of your cat,
  79. cookies, donoughts, candies,
  80. books, newspapers, magazines,
  81. 10$, 100$ or 1 million $ (if your name is Bill Gates),
  82. coins, pins and stamps,
  83. ...
  84. ...
  85.  
  86. CAN I REALLY SEND ANYTHING?
  87.  
  88. Unfortunately we don't accept snakes, crocodiles and kangaroos,
  89. we used to accept them but, quite surprisingly, this created some
  90. problems with our neighbours...
  91.  
  92. AND IF I'M VERY HAPPY WITH MULTISHAPE AND I DON'T SEND YOU ANYTHING?
  93.  
  94. Well, let's speak about my hobbies: VOODOO for example...
  95.  
  96. LAST WORD
  97. .........
  98.  
  99. Thamks to all the people who contributed to the discussion about Delphi with
  100. their components and examples, I learned a lot from them.
  101.  
  102. Enjoy multishape and be happy!
  103.  
  104. Enrico
  105.  
  106.  
  107. ...............................
  108. Enrico Lodolo
  109. via F. Bolognese 27/3
  110. 40129 Bologna
  111. E-mail: e.lodolo@bo.nettuno.it
  112. CompuServe: 100275,1255
  113. Fax: +39 51 371018
  114. ...............................
  115.  
  116.